Optimal. Leaf size=237 \[ \frac {\left (2 a c^3-4 b c^2 d+3 a c d^2-b d^3\right ) \tanh ^{-1}\left (\frac {\sqrt {c-d} \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {c+d}}\right )}{(c-d)^{7/2} (c+d)^{7/2} f}+\frac {(b c-a d) \tan (e+f x)}{3 \left (c^2-d^2\right ) f (c+d \sec (e+f x))^3}+\frac {\left (2 b c^2-5 a c d+3 b d^2\right ) \tan (e+f x)}{6 \left (c^2-d^2\right )^2 f (c+d \sec (e+f x))^2}+\frac {\left (2 b c^3-11 a c^2 d+13 b c d^2-4 a d^3\right ) \tan (e+f x)}{6 \left (c^2-d^2\right )^3 f (c+d \sec (e+f x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.38, antiderivative size = 237, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.172, Rules used = {4088, 12, 3916,
2738, 214} \begin {gather*} \frac {\left (-5 a c d+2 b c^2+3 b d^2\right ) \tan (e+f x)}{6 f \left (c^2-d^2\right )^2 (c+d \sec (e+f x))^2}+\frac {(b c-a d) \tan (e+f x)}{3 f \left (c^2-d^2\right ) (c+d \sec (e+f x))^3}+\frac {\left (2 a c^3+3 a c d^2-4 b c^2 d-b d^3\right ) \tanh ^{-1}\left (\frac {\sqrt {c-d} \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {c+d}}\right )}{f (c-d)^{7/2} (c+d)^{7/2}}+\frac {\left (-11 a c^2 d-4 a d^3+2 b c^3+13 b c d^2\right ) \tan (e+f x)}{6 f \left (c^2-d^2\right )^3 (c+d \sec (e+f x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 214
Rule 2738
Rule 3916
Rule 4088
Rubi steps
\begin {align*} \int \frac {\sec (e+f x) (a+b \sec (e+f x))}{(c+d \sec (e+f x))^4} \, dx &=\frac {(b c-a d) \tan (e+f x)}{3 \left (c^2-d^2\right ) f (c+d \sec (e+f x))^3}-\frac {\int \frac {\sec (e+f x) (-3 (a c-b d)-2 (b c-a d) \sec (e+f x))}{(c+d \sec (e+f x))^3} \, dx}{3 \left (c^2-d^2\right )}\\ &=\frac {(b c-a d) \tan (e+f x)}{3 \left (c^2-d^2\right ) f (c+d \sec (e+f x))^3}+\frac {\left (2 b c^2-5 a c d+3 b d^2\right ) \tan (e+f x)}{6 \left (c^2-d^2\right )^2 f (c+d \sec (e+f x))^2}+\frac {\int \frac {\sec (e+f x) \left (2 \left (3 a c^2-5 b c d+2 a d^2\right )+\left (2 b c^2-5 a c d+3 b d^2\right ) \sec (e+f x)\right )}{(c+d \sec (e+f x))^2} \, dx}{6 \left (c^2-d^2\right )^2}\\ &=\frac {(b c-a d) \tan (e+f x)}{3 \left (c^2-d^2\right ) f (c+d \sec (e+f x))^3}+\frac {\left (2 b c^2-5 a c d+3 b d^2\right ) \tan (e+f x)}{6 \left (c^2-d^2\right )^2 f (c+d \sec (e+f x))^2}+\frac {\left (2 b c^3-11 a c^2 d+13 b c d^2-4 a d^3\right ) \tan (e+f x)}{6 \left (c^2-d^2\right )^3 f (c+d \sec (e+f x))}-\frac {\int -\frac {3 \left (2 a c^3-4 b c^2 d+3 a c d^2-b d^3\right ) \sec (e+f x)}{c+d \sec (e+f x)} \, dx}{6 \left (c^2-d^2\right )^3}\\ &=\frac {(b c-a d) \tan (e+f x)}{3 \left (c^2-d^2\right ) f (c+d \sec (e+f x))^3}+\frac {\left (2 b c^2-5 a c d+3 b d^2\right ) \tan (e+f x)}{6 \left (c^2-d^2\right )^2 f (c+d \sec (e+f x))^2}+\frac {\left (2 b c^3-11 a c^2 d+13 b c d^2-4 a d^3\right ) \tan (e+f x)}{6 \left (c^2-d^2\right )^3 f (c+d \sec (e+f x))}+\frac {\left (2 a c^3-4 b c^2 d+3 a c d^2-b d^3\right ) \int \frac {\sec (e+f x)}{c+d \sec (e+f x)} \, dx}{2 \left (c^2-d^2\right )^3}\\ &=\frac {(b c-a d) \tan (e+f x)}{3 \left (c^2-d^2\right ) f (c+d \sec (e+f x))^3}+\frac {\left (2 b c^2-5 a c d+3 b d^2\right ) \tan (e+f x)}{6 \left (c^2-d^2\right )^2 f (c+d \sec (e+f x))^2}+\frac {\left (2 b c^3-11 a c^2 d+13 b c d^2-4 a d^3\right ) \tan (e+f x)}{6 \left (c^2-d^2\right )^3 f (c+d \sec (e+f x))}+\frac {\left (2 a c^3-4 b c^2 d+3 a c d^2-b d^3\right ) \int \frac {1}{1+\frac {c \cos (e+f x)}{d}} \, dx}{2 d \left (c^2-d^2\right )^3}\\ &=\frac {(b c-a d) \tan (e+f x)}{3 \left (c^2-d^2\right ) f (c+d \sec (e+f x))^3}+\frac {\left (2 b c^2-5 a c d+3 b d^2\right ) \tan (e+f x)}{6 \left (c^2-d^2\right )^2 f (c+d \sec (e+f x))^2}+\frac {\left (2 b c^3-11 a c^2 d+13 b c d^2-4 a d^3\right ) \tan (e+f x)}{6 \left (c^2-d^2\right )^3 f (c+d \sec (e+f x))}+\frac {\left (2 a c^3-4 b c^2 d+3 a c d^2-b d^3\right ) \text {Subst}\left (\int \frac {1}{1+\frac {c}{d}+\left (1-\frac {c}{d}\right ) x^2} \, dx,x,\tan \left (\frac {1}{2} (e+f x)\right )\right )}{d \left (c^2-d^2\right )^3 f}\\ &=\frac {\left (2 a c^3-4 b c^2 d+3 a c d^2-b d^3\right ) \tanh ^{-1}\left (\frac {\sqrt {c-d} \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {c+d}}\right )}{(c-d)^{7/2} (c+d)^{7/2} f}+\frac {(b c-a d) \tan (e+f x)}{3 \left (c^2-d^2\right ) f (c+d \sec (e+f x))^3}+\frac {\left (2 b c^2-5 a c d+3 b d^2\right ) \tan (e+f x)}{6 \left (c^2-d^2\right )^2 f (c+d \sec (e+f x))^2}+\frac {\left (2 b c^3-11 a c^2 d+13 b c d^2-4 a d^3\right ) \tan (e+f x)}{6 \left (c^2-d^2\right )^3 f (c+d \sec (e+f x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.04, size = 405, normalized size = 1.71 \begin {gather*} \frac {(d+c \cos (e+f x)) \sec ^3(e+f x) (a+b \sec (e+f x)) \left (\frac {24 \left (-b d \left (4 c^2+d^2\right )+a \left (2 c^3+3 c d^2\right )\right ) \tanh ^{-1}\left (\frac {(-c+d) \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {c^2-d^2}}\right ) (d+c \cos (e+f x))^3}{\sqrt {c^2-d^2}}-6 b c^5 \sin (e+f x)+18 a c^4 d \sin (e+f x)-18 b c^3 d^2 \sin (e+f x)+39 a c^2 d^3 \sin (e+f x)-51 b c d^4 \sin (e+f x)+18 a d^5 \sin (e+f x)-12 b c^4 d \sin (2 (e+f x))+54 a c^3 d^2 \sin (2 (e+f x))-54 b c^2 d^3 \sin (2 (e+f x))+6 a c d^4 \sin (2 (e+f x))+6 b d^5 \sin (2 (e+f x))-6 b c^5 \sin (3 (e+f x))+18 a c^4 d \sin (3 (e+f x))-10 b c^3 d^2 \sin (3 (e+f x))-5 a c^2 d^3 \sin (3 (e+f x))+b c d^4 \sin (3 (e+f x))+2 a d^5 \sin (3 (e+f x))\right )}{24 \left (-c^2+d^2\right )^3 f (b+a \cos (e+f x)) (c+d \sec (e+f x))^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.49, size = 376, normalized size = 1.59
method | result | size |
derivativedivides | \(\frac {-\frac {2 \left (-\frac {\left (6 a \,c^{2} d +3 a c \,d^{2}+2 a \,d^{3}-2 b \,c^{3}-2 b \,c^{2} d -6 b c \,d^{2}-b \,d^{3}\right ) \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 \left (c -d \right ) \left (c^{3}+3 c^{2} d +3 c \,d^{2}+d^{3}\right )}+\frac {2 \left (9 a \,c^{2} d +a \,d^{3}-3 b \,c^{3}-7 b c \,d^{2}\right ) \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 \left (c^{2}+2 c d +d^{2}\right ) \left (c^{2}-2 c d +d^{2}\right )}-\frac {\left (6 a \,c^{2} d -3 a c \,d^{2}+2 a \,d^{3}-2 b \,c^{3}+2 b \,c^{2} d -6 b c \,d^{2}+b \,d^{3}\right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{2 \left (c +d \right ) \left (c^{3}-3 c^{2} d +3 c \,d^{2}-d^{3}\right )}\right )}{\left (c \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )-d \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )-c -d \right )^{3}}+\frac {\left (2 a \,c^{3}+3 a c \,d^{2}-4 b \,c^{2} d -b \,d^{3}\right ) \arctanh \left (\frac {\left (c -d \right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{\sqrt {\left (c +d \right ) \left (c -d \right )}}\right )}{\left (c^{6}-3 c^{4} d^{2}+3 c^{2} d^{4}-d^{6}\right ) \sqrt {\left (c +d \right ) \left (c -d \right )}}}{f}\) | \(376\) |
default | \(\frac {-\frac {2 \left (-\frac {\left (6 a \,c^{2} d +3 a c \,d^{2}+2 a \,d^{3}-2 b \,c^{3}-2 b \,c^{2} d -6 b c \,d^{2}-b \,d^{3}\right ) \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 \left (c -d \right ) \left (c^{3}+3 c^{2} d +3 c \,d^{2}+d^{3}\right )}+\frac {2 \left (9 a \,c^{2} d +a \,d^{3}-3 b \,c^{3}-7 b c \,d^{2}\right ) \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 \left (c^{2}+2 c d +d^{2}\right ) \left (c^{2}-2 c d +d^{2}\right )}-\frac {\left (6 a \,c^{2} d -3 a c \,d^{2}+2 a \,d^{3}-2 b \,c^{3}+2 b \,c^{2} d -6 b c \,d^{2}+b \,d^{3}\right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{2 \left (c +d \right ) \left (c^{3}-3 c^{2} d +3 c \,d^{2}-d^{3}\right )}\right )}{\left (c \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )-d \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )-c -d \right )^{3}}+\frac {\left (2 a \,c^{3}+3 a c \,d^{2}-4 b \,c^{2} d -b \,d^{3}\right ) \arctanh \left (\frac {\left (c -d \right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{\sqrt {\left (c +d \right ) \left (c -d \right )}}\right )}{\left (c^{6}-3 c^{4} d^{2}+3 c^{2} d^{4}-d^{6}\right ) \sqrt {\left (c +d \right ) \left (c -d \right )}}}{f}\) | \(376\) |
risch | \(\text {Expression too large to display}\) | \(1386\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 601 vs.
\(2 (229) = 458\).
time = 2.97, size = 1264, normalized size = 5.33 \begin {gather*} \left [\frac {3 \, {\left (2 \, a c^{3} d^{3} - 4 \, b c^{2} d^{4} + 3 \, a c d^{5} - b d^{6} + {\left (2 \, a c^{6} - 4 \, b c^{5} d + 3 \, a c^{4} d^{2} - b c^{3} d^{3}\right )} \cos \left (f x + e\right )^{3} + 3 \, {\left (2 \, a c^{5} d - 4 \, b c^{4} d^{2} + 3 \, a c^{3} d^{3} - b c^{2} d^{4}\right )} \cos \left (f x + e\right )^{2} + 3 \, {\left (2 \, a c^{4} d^{2} - 4 \, b c^{3} d^{3} + 3 \, a c^{2} d^{4} - b c d^{5}\right )} \cos \left (f x + e\right )\right )} \sqrt {c^{2} - d^{2}} \log \left (\frac {2 \, c d \cos \left (f x + e\right ) - {\left (c^{2} - 2 \, d^{2}\right )} \cos \left (f x + e\right )^{2} + 2 \, \sqrt {c^{2} - d^{2}} {\left (d \cos \left (f x + e\right ) + c\right )} \sin \left (f x + e\right ) + 2 \, c^{2} - d^{2}}{c^{2} \cos \left (f x + e\right )^{2} + 2 \, c d \cos \left (f x + e\right ) + d^{2}}\right ) + 2 \, {\left (2 \, b c^{5} d^{2} - 11 \, a c^{4} d^{3} + 11 \, b c^{3} d^{4} + 7 \, a c^{2} d^{5} - 13 \, b c d^{6} + 4 \, a d^{7} + {\left (6 \, b c^{7} - 18 \, a c^{6} d + 4 \, b c^{5} d^{2} + 23 \, a c^{4} d^{3} - 11 \, b c^{3} d^{4} - 7 \, a c^{2} d^{5} + b c d^{6} + 2 \, a d^{7}\right )} \cos \left (f x + e\right )^{2} + 3 \, {\left (2 \, b c^{6} d - 9 \, a c^{5} d^{2} + 7 \, b c^{4} d^{3} + 8 \, a c^{3} d^{4} - 10 \, b c^{2} d^{5} + a c d^{6} + b d^{7}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{12 \, {\left ({\left (c^{11} - 4 \, c^{9} d^{2} + 6 \, c^{7} d^{4} - 4 \, c^{5} d^{6} + c^{3} d^{8}\right )} f \cos \left (f x + e\right )^{3} + 3 \, {\left (c^{10} d - 4 \, c^{8} d^{3} + 6 \, c^{6} d^{5} - 4 \, c^{4} d^{7} + c^{2} d^{9}\right )} f \cos \left (f x + e\right )^{2} + 3 \, {\left (c^{9} d^{2} - 4 \, c^{7} d^{4} + 6 \, c^{5} d^{6} - 4 \, c^{3} d^{8} + c d^{10}\right )} f \cos \left (f x + e\right ) + {\left (c^{8} d^{3} - 4 \, c^{6} d^{5} + 6 \, c^{4} d^{7} - 4 \, c^{2} d^{9} + d^{11}\right )} f\right )}}, \frac {3 \, {\left (2 \, a c^{3} d^{3} - 4 \, b c^{2} d^{4} + 3 \, a c d^{5} - b d^{6} + {\left (2 \, a c^{6} - 4 \, b c^{5} d + 3 \, a c^{4} d^{2} - b c^{3} d^{3}\right )} \cos \left (f x + e\right )^{3} + 3 \, {\left (2 \, a c^{5} d - 4 \, b c^{4} d^{2} + 3 \, a c^{3} d^{3} - b c^{2} d^{4}\right )} \cos \left (f x + e\right )^{2} + 3 \, {\left (2 \, a c^{4} d^{2} - 4 \, b c^{3} d^{3} + 3 \, a c^{2} d^{4} - b c d^{5}\right )} \cos \left (f x + e\right )\right )} \sqrt {-c^{2} + d^{2}} \arctan \left (-\frac {\sqrt {-c^{2} + d^{2}} {\left (d \cos \left (f x + e\right ) + c\right )}}{{\left (c^{2} - d^{2}\right )} \sin \left (f x + e\right )}\right ) + {\left (2 \, b c^{5} d^{2} - 11 \, a c^{4} d^{3} + 11 \, b c^{3} d^{4} + 7 \, a c^{2} d^{5} - 13 \, b c d^{6} + 4 \, a d^{7} + {\left (6 \, b c^{7} - 18 \, a c^{6} d + 4 \, b c^{5} d^{2} + 23 \, a c^{4} d^{3} - 11 \, b c^{3} d^{4} - 7 \, a c^{2} d^{5} + b c d^{6} + 2 \, a d^{7}\right )} \cos \left (f x + e\right )^{2} + 3 \, {\left (2 \, b c^{6} d - 9 \, a c^{5} d^{2} + 7 \, b c^{4} d^{3} + 8 \, a c^{3} d^{4} - 10 \, b c^{2} d^{5} + a c d^{6} + b d^{7}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{6 \, {\left ({\left (c^{11} - 4 \, c^{9} d^{2} + 6 \, c^{7} d^{4} - 4 \, c^{5} d^{6} + c^{3} d^{8}\right )} f \cos \left (f x + e\right )^{3} + 3 \, {\left (c^{10} d - 4 \, c^{8} d^{3} + 6 \, c^{6} d^{5} - 4 \, c^{4} d^{7} + c^{2} d^{9}\right )} f \cos \left (f x + e\right )^{2} + 3 \, {\left (c^{9} d^{2} - 4 \, c^{7} d^{4} + 6 \, c^{5} d^{6} - 4 \, c^{3} d^{8} + c d^{10}\right )} f \cos \left (f x + e\right ) + {\left (c^{8} d^{3} - 4 \, c^{6} d^{5} + 6 \, c^{4} d^{7} - 4 \, c^{2} d^{9} + d^{11}\right )} f\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \sec {\left (e + f x \right )}\right ) \sec {\left (e + f x \right )}}{\left (c + d \sec {\left (e + f x \right )}\right )^{4}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 693 vs.
\(2 (222) = 444\).
time = 0.54, size = 693, normalized size = 2.92 \begin {gather*} -\frac {\frac {3 \, {\left (2 \, a c^{3} - 4 \, b c^{2} d + 3 \, a c d^{2} - b d^{3}\right )} {\left (\pi \left \lfloor \frac {f x + e}{2 \, \pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (2 \, c - 2 \, d\right ) + \arctan \left (\frac {c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )}{\sqrt {-c^{2} + d^{2}}}\right )\right )}}{{\left (c^{6} - 3 \, c^{4} d^{2} + 3 \, c^{2} d^{4} - d^{6}\right )} \sqrt {-c^{2} + d^{2}}} + \frac {6 \, b c^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 18 \, a c^{4} d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 6 \, b c^{4} d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} + 27 \, a c^{3} d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} + 12 \, b c^{3} d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 6 \, a c^{2} d^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 27 \, b c^{2} d^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} + 3 \, a c d^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} + 12 \, b c d^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 6 \, a d^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} + 3 \, b d^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 12 \, b c^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 36 \, a c^{4} d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} - 16 \, b c^{3} d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} - 32 \, a c^{2} d^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 28 \, b c d^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} - 4 \, a d^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 6 \, b c^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 18 \, a c^{4} d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 6 \, b c^{4} d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 27 \, a c^{3} d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 12 \, b c^{3} d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 6 \, a c^{2} d^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 27 \, b c^{2} d^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 3 \, a c d^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 12 \, b c d^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 6 \, a d^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 3 \, b d^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )}{{\left (c^{6} - 3 \, c^{4} d^{2} + 3 \, c^{2} d^{4} - d^{6}\right )} {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c - d\right )}^{3}}}{3 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 6.39, size = 439, normalized size = 1.85 \begin {gather*} \frac {\frac {{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^5\,\left (2\,b\,c^3-2\,a\,d^3+b\,d^3-3\,a\,c\,d^2-6\,a\,c^2\,d+6\,b\,c\,d^2+2\,b\,c^2\,d\right )}{{\left (c+d\right )}^3\,\left (c-d\right )}+\frac {4\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3\,\left (-3\,b\,c^3+9\,a\,c^2\,d-7\,b\,c\,d^2+a\,d^3\right )}{3\,{\left (c+d\right )}^2\,\left (c^2-2\,c\,d+d^2\right )}-\frac {\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (2\,a\,d^3-2\,b\,c^3+b\,d^3-3\,a\,c\,d^2+6\,a\,c^2\,d-6\,b\,c\,d^2+2\,b\,c^2\,d\right )}{\left (c+d\right )\,\left (c^3-3\,c^2\,d+3\,c\,d^2-d^3\right )}}{f\,\left ({\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2\,\left (-3\,c^3-3\,c^2\,d+3\,c\,d^2+3\,d^3\right )-{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4\,\left (-3\,c^3+3\,c^2\,d+3\,c\,d^2-3\,d^3\right )+3\,c\,d^2+3\,c^2\,d+c^3+d^3-{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^6\,\left (c^3-3\,c^2\,d+3\,c\,d^2-d^3\right )\right )}+\frac {\mathrm {atanh}\left (\frac {\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (2\,c-2\,d\right )\,\left (c^3-3\,c^2\,d+3\,c\,d^2-d^3\right )}{2\,\sqrt {c+d}\,{\left (c-d\right )}^{7/2}}\right )\,\left (2\,a\,c^3-4\,b\,c^2\,d+3\,a\,c\,d^2-b\,d^3\right )}{f\,{\left (c+d\right )}^{7/2}\,{\left (c-d\right )}^{7/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________